package com.jhx.video.draftbox

import android.app.Activity
import com.jhx.common.framework.BasePresenter
import com.jhx.common.framework.BaseView
import com.jhx.common.model.Video

/**
 *
 * @author Jack 2018-03-07 18:13
 */
class Contract {

    interface DraftBoxView : BaseView {
        fun getContext(): Activity?
        fun getVideoListSuccess(list: List<Video>?)
    }

    abstract class DraftBoxPresenter : BasePresenter<DraftBoxView>() {
        /**
         * 获取草稿箱中的视频列表
         */
        abstract fun getCacheVideo()

        /**
         * 删除视频
         */
        abstract fun delVideo(vide: Video?, complete: (() -> Unit)?)

    }
}